﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace MyMediaPlayerV2
{
    public abstract class AMedia
    {
        public String Uri { get; private set; }
        public String Type { get; private set; }
        protected FileInfo Infos { get; private set; }

        public AMedia(String uri)
        {
            Uri = uri;
            Infos = new FileInfo(Uri);
            Type = Infos.Extension.ToString();
        }
    }
}
